home *** CD-ROM | disk | FTP | other *** search
- Subject: 32-bit coordinate space
- Sent: 5/23/96 3:00 PM
- Received: 5/23/96 3:11 PM
- From: Gary Ashcraft, ashcraft@dharbor.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Like everyone knows, both ODF and OpenDoc use a 16.16 fixed-point
- coordinate system. Without changing the coordinate mapping, the maximum
- number of pages in the vertical direction is about 40 pages. While this is
- enough for a leaf part or ODF Draw, many container (root) parts display
- content that can easily exceed this limit. Text processors and
- spreadsheets are examples of parts that exceed this limit.
-
- Both OpenDoc and ODF claim that you can change this size by scaling your
- coordinates. Henri has suggested that we just view the fixed-point numbers
- as 24.8 fixed-point numbers. Kurt Piersol (in Develop 21) suggests using
- fixed-point inches instead of points. We've been spending the past couple
- of days looking into supporting a larger view space. It turns out that
- it's not that simple.
-
- Simply changing the scaling is only part of the problem. The other part of
- the problem is how to handle the 32-bit coordinate space, since QuickDraw
- is limited to 16 bits. We need 32-bit coordinates, then a way to map them
- back & forth from 16-bit space when we render, handle mouse clicks, etc.
-
- We've looked at MacApp and PowerPlant; they both use port tiling at 1K
- (MacApp) and 16K (PowerPlant) to achieve canvasses of arbitrary size.
-
- We've tried subclassing FW_CView, keeping our own member variable that's in
- 32-bit space, but it looks like we'll have problems, since all of the
- coordinate conversion methods, like FrameToView and ViewToFrame, are not
- declared virtual.
-
- What we're trying to do is something that a lot of developers will have to
- deal with. This problem should be solved once in ODF, like MacApp has
- done. Until ODF solves this problem, it can't be used for serious
- spreadsheets or text processing.
-
- In the meantime, can you give us a recipe that provides a solution using ODF R1?
-
- Regards,
- The Digital Harbor Development Team
-
-
-